package com.chat.service;

import com.chat.request.UpdateEmailRequest;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface AuthenticationService extends UserDetailsService {

    void sendValidateEmail(String email, String sessionId, boolean hasAccount);

    void sendValidateEmail(String email, String sessionId, String key);


    void validateAndRegisterUser(String username, String password, String email, String code,
            String sessionId);

    void validateOnly(String email, String code, String redisKey);

    void resetPassword(String password);

    boolean updateEmail(UpdateEmailRequest dto);
}
